<template>

  <!--  试图-->
  <div>

    <el-form :inline="true" :model="formInline" class="demo-form-inline">
      <el-form-item label="状态查询">
        <el-select v-model="formInline.status" placeholder="状态查询">
          <el-option label="正常" value="0"></el-option>
          <el-option label="停用" value="1"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="时间区间查询">
        <el-date-picker
            v-model="value"
            type="datetimerange"
            range-separator="至"
            start-placeholder="开始日期"
            value-format="yyyy-MM-dd HH:mm:ss"
            end-placeholder="结束日期"
        >
        </el-date-picker>
      </el-form-item>

      <el-form-item>
        <el-button type="primary" @click="machiningList">查询</el-button>
      </el-form-item>
    </el-form>

    <el-table
        ref="multipleTable"
        :data="tableData"
        tooltip-effect="dark"
        style="width: 100%">
      <el-table-column
          prop="taskId"
          label="任务编号"
          width="180">
      </el-table-column>
      <el-table-column
          prop="taskName"
          label="加工任务名称">
      </el-table-column>
      <el-table-column
          prop="workContint"
          label="工作内容">
      </el-table-column>
      <el-table-column
          prop="workName"
          label="操作人姓名">
      </el-table-column>
      <el-table-column
          prop="operationContent"
          label="操作内容">
      </el-table-column>
      <el-table-column
          prop="status"
          label="操作状态">
      </el-table-column>
      <el-table-column
          prop="operationTime"
          label="操作时间">
      </el-table-column>
      <el-table-column
          prop="remark"
          label="任务备注">
      </el-table-column>
      <el-table-column
          prop="operationerPhone"
          label="操作人电话">
      </el-table-column>
      <el-table-column
          fixed="right"
          label="操作"
          width="100">
        <template v-slot="scope">
          <el-button @click="openUpdate(scope.row)" type="text" size="small">修改</el-button>
          <el-button @click="byId(scope.row.taskId)" type="text" size="small"><i class="el-icon-delete"></i>删除</el-button>
        </template>
      </el-table-column>
    </el-table>

  </div>

</template>

<script>
export default {
  name: "MachiningTaskView",
  data() {
    return {
      //默认属性
      tableData: [],
      formInline:{},
      value:[],
      formLabelWidth:'120px',



    }
  }, methods: {
    //自定义方法
    OpenAddRole() {

    },
    machiningList() {
      this.axios.get("system/machiningtask/machiningTaskList").then(res => {
       this.tableData = res.data.data
        });
    },

  }, created() {//初始化
      this.machiningList();
  }
}
</script>

<style scoped>

</style>